﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Pout_Porri.Screens.Interface;
using Pout_Porri.Objects;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;
using Pout_Porri.Utils;
using Pout_Porri.Levels;

namespace Pout_Porri.Screens.Menu
{
    class menuButton
    {
        public bool selected = false;
        public string text = "";
        public Rectangle area;
      

        public menuButton(Rectangle area, string text)
        {
            this.area = area;
            this.text = text;
        }

                
        /// <summary>
        /// Este draw faz a alternância do menu selecionado
        /// </summary>
        /// <param name="spriteBatch"></param>
        /// <param name="spriteFont"></param>
        public void Draw(SpriteBatch spriteBatch, SpriteFont spriteFont)
        {
            if (selected == false)
            {
                spriteBatch.DrawString(spriteFont, text, new Vector2(area.X, area.Y), Color.Black);
            }

            if (selected == true)
            {
                spriteBatch.DrawString(spriteFont, text, new Vector2(area.X, area.Y), Color.White);
            }
        }

    }
}
